package com.xyyl.csc.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @PROJECT_NAME: springcloud-study
 * @DESCRIPTION:
 * @Author: csc
 * @DATE: 2023/4/25 8:06
 */
@RestController
//@RefreshScope
public class ConfigController {


    @Autowired
    private RedisTemplate redisTemplate;

    @GetMapping("/getprop")
     public String getprop(){
        redisTemplate.opsForValue().set("make","你好!我是中文");
        String make =(String) redisTemplate.opsForValue().get("make");
        return make;
     }

}
